package com.bwie.system.service;

import com.bwie.common.doamin.dto.LoginDTO;
import com.bwie.common.doamin.dto.RegisterDTO;
import com.bwie.common.doamin.model.SysUser;

import javax.validation.Valid;

/**
 * @className: SysUserService
 * @Description: TODO
 * @version: v1.８.0
 * @author: 刘洋朔
 * @date: 2025/9/9 10:49
 */
public interface SysUserService {
    /**
     * 获取登录的用户信息
     * @param loginDTO
     * @return
     */
    SysUser selLoginInfo(LoginDTO loginDTO);

    /**
     * 用户注册
     * @param registerDTO
     */
    void register(@Valid RegisterDTO registerDTO);

    /**
     * 获取登录的角色id
     * @param userId
     * @return
     */
    Long selRoleByUserId(Long userId);
}
